<form action="{:url()}" method="post" class="form_single">
    <div class="box">
      <div class="box-body">
        <div class="row">
          <div class="col-md-6">
            <div class="form-group">
              <label>商品名称</label>
              <span>（友情链接名称，用于前端展示）</span>
              <input class="form-control" name="name" placeholder="请输入友情链接名称" value="{$info['name']|default=''}" type="text">
            </div>
          </div>
            
          <div class="col-md-6">
            <div class="form-group">
              <label>种类</label>
              <input class="form-control" name="sort" placeholder="请输入种类" value="{$info['mold']|default=''}" type="text">
            </div>
          </div> 
            
         <div class="col-md-6">
            <div class="form-group">
              <label>数量</label>             
              <input class="form-control" name="g_number" placeholder="请输入数量" value="{$info['g_number']|default='0'}" type="text">
            </div>
          </div>
            
          <div class="col-md-6">
            <div class="form-group">
                <label>图片</label>
                <span class="">（请上传单张图片）</span>
                <br/>
                {assign name="pic" value="$info.pic|default='0'" /}
                {:widget('file/index', ['name' => 'pic', 'value' => $pic, 'type' => 'img'])}
            </div>
          </div>
            
          </div>
        </div>
        
      <div class="box-footer">
          
        <input type="hidden" name="id" value="{$info['id']|default='0'}"/>
        
        {include file="layout/edit_btn_group"/}
      </div>
        
      </div>

</form>